package com.yonyou.cyxdms.sysAuth.service.dto;

import com.yonyou.cyxdms.framework.bean.dto.base.DMSBaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * 用户登录的DTO
 *
 * @author Administrator
 * @date 2017年6月25日
 */
@ApiModel(value = "用户DTO", description = "用户对象")
public class UserLoginDTO extends DMSBaseDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "名称")
    private String username;
    @ApiModelProperty(value = "密码")
    private String password;
    @ApiModelProperty(value = "是否有效")
    private String validate;
    @ApiModelProperty(value = "公司")
    private String groupCode;

    @ApiModelProperty(value = "验证码")
    private String verificationCode;

    @ApiModelProperty(value = "设备Id")
    private String deviceId;

    @ApiModelProperty(value = "极光推送id")
    private String regId;

    @ApiModelProperty(value = "手机号码")
    private String phone;

    @ApiModelProperty(value = "手机验证码")
    private String checkCode;

    @ApiModelProperty(value = "微信openId")
    private String openId;

    @ApiModelProperty(value = "登录类型，1：用户名或手机号+密码登录，2：手机号+验证码登录，3：微信登录，4：GUC认证中心登陆方式")
    private Integer loginType;

    @ApiModelProperty(value = "appId")
    private String appId;

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public Integer getLoginType() {
        return loginType;
    }

    @Override
    public String toString() {
        return "UserLoginDTO{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", validate='" + validate + '\'' +
                ", groupCode='" + groupCode + '\'' +
                ", verificationCode='" + verificationCode + '\'' +
                ", deviceId='" + deviceId + '\'' +
                ", regId='" + regId + '\'' +
                ", mobilePhone='" + phone + '\'' +
                ", checkCode='" + checkCode + '\'' +
                ", openId='" + openId + '\'' +
                ", loginType=" + loginType +
                ", appId='" + appId + '\'' +
                '}';
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public void setLoginType(Integer loginType) {
        this.loginType = loginType;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }


    public String getCheckCode() {
        return checkCode;
    }

    public void setCheckCode(String checkCode) {
        this.checkCode = checkCode;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getValidate() {
        return validate;
    }

    public void setValidate(String validate) {
        this.validate = validate;
    }

    public String getGroupCode() {
        return groupCode;
    }

    public void setGroupCode(String groupCode) {
        this.groupCode = groupCode;
    }

    public String getVerificationCode() {
        return verificationCode;
    }

    public void setVerificationCode(String verificationCode) {
        this.verificationCode = verificationCode;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getRegId() {
        return regId;
    }

    public void setRegId(String regId) {
        this.regId = regId;
    }

}
